<template>
  <div class="shopping">
    <div class="bg"></div>
    <div class="container">
      <span class="title">我的购物车</span>
      <div class="hr"></div>
      <div
        v-if="show"
        class="empty"
      >
        <img
          src="../assets/shopping/cart-empty.png"
          alt=""
        />
      </div>
      <div v-else>
        <div class="main container">
          <div>

          </div>
        </div>
      </div>
    </div>
    <FooterSub />
  </div>
</template>

<script>
export default {
  data () {
    return {
      show: true,
    };
  },
};
</script>
<style scoped>
</style>
<style lang="scss" scoped>
$fc: #ff6637;
.shopping {
  .container {
    margin-bottom: 16px;
  }
  .bg {
    width: 100%;
    height: 450px;
    background: url("../assets/swiper/2.png") no-repeat;
    background-position-x: center;
  }
  .title {
    margin-top: 16px;
    display: inline-block;
    padding: 12px 20px;
    color: $fc;
    font-size: 16px;
    border-bottom: 2px solid $fc;
  }
  .hr {
    height: 1px;
    background-color: #eaeaea;
  }
  .empty {
    margin: 6px 0;
    background-color: #f7f7f7;
    height: 500px;
    line-height: 500px;
    text-align: center;
  }
  .cart {
    margin-top: 20px;
  }
  .cart_header {
    text-align: right;
    font-size: 14px;
    line-height: 36px;
  }
  .cart_header > button {
    display: inline-block;
    vertical-align: middle;
    width: 100px;
    height: 36px;
    background: #f63;
    border: none;
    border-radius: 3px;
    color: #fff;
    font-size: 18px;
  }
  .cart_header > span {
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
  }
  .cart_header > span > em {
    font-style: normal;
    color: #f63;
  }
  .cart_header > span > strong {
    font-size: 18px;
    color: #f63;
  }
  .cart_con {
    margin: 10px 0;
    font-size: 14px;
  }
  .cartcon_title {
    line-height: 33px;
    background: #eee;
    border: 1px solid #ddd;
  }
  .cartcon_title > span {
    display: inline-block;
    vertical-align: middle;
    text-align: center;
  }
  .cartcon_title > span:nth-child(1) {
    width: 80px;
  }
  .cartcon_title > span:nth-child(2) {
    width: 370px;
  }
  .cartcon_title > span:nth-child(3) {
    width: 120px;
  }
  .cartcon_title > span:nth-child(4) {
    width: 140px;
  }
  .cartcon_title > span:nth-child(5) {
    width: 130px;
    margin-right: 40px;
  }

  .cart_con h2 {
    line-height: 60px;
    text-align: center;
    font-size: 18px;
    font-weight: lighter;
  }
  .cart_con ul li {
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
  }
  .cart_con > ul > li > a,
  .cart_con > ul > li > i,
  .cart_con > ul > li > div,
  .cart_con ul > li > strong,
  .cart_con ul > li > em,
  .cart_con ul li input {
    display: inline-block;
    vertical-align: middle;
    font-style: normal;
  }

  .cart_con > ul > li > a.cart_img {
    margin-left: 20px;
    border: 1px solid #eee;
    padding: 4px;
    width: 90px;
    height: 90px;
  }
  .cart_con > ul > li > a.cart_img:hover {
    border: 1px solid #ccc;
  }
  .cart_con > ul > li > a.cart_img img {
    max-width: 100%;
  }
  .cart_con > ul > li > a.cart_title {
    width: 310px;
    margin-left: 20px;
    font-size: 18px;
  }
  .cart_con ul li > i {
    width: 120px;
  }
  .cart_con ul li > strong {
    width: 140px;
    color: #f63;
  }
  .cart_con ul li > em {
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 2px;
    width: 14px;
    height: 14px;
    cursor: pointer;
  }
  .cart_con ul li > em:hover {
    border: 1px solid #ddd;
  }
  .cart_con > ul > li > div {
    width: 140px;
  }
  .cart_con > ul > li > div span {
    width: 20px;
    height: 20px;
    background: #e8e8e8;
    text-align: center;
    line-height: 20px;
    display: inline-block;
    vertical-align: middle;
  }
  .cart_con > ul > li > div span:hover {
    cursor: pointer;
    background: #eee;
  }
  .cart_con > ul > li > div input {
    width: 28px;
    height: 18px;
    border: 1px solid #ccc;
    text-align: center;
    vertical-align: middle;
  }
}
</style>
